package level;

import pulpcore.sprite.Sprite;
import pulpcore.sprite.FilledSprite;
import pulpcore.Stage;
import pulpcore.image.CoreGraphics;
import pulpcore.image.Colors;
import pulpfizz.pulp.body.PhysicsLayer;
import pulpfizz.pulp.body.BodySprite;
import pulpfizz.pulp.body.Java2DSprite;
import goliath.BasicDemo;
import org.jbox2d.dynamics.Body;
import org.jbox2d.dynamics.joints.Joint;
import org.jbox2d.common.Vec2;

import java.awt.*;

/**
 * @author will
 * @date Aug 10, 2008 6:23:22 PM
 */
public class StackHeightSprite extends FilledSprite {
    public StackHeightSprite(float h) {
        super(0,0,Stage.getWidth(),50,Colors.rgba(Colors.GREEN, 100));
        this.height.set(BasicDemo.getPhysics().getCanvasVector(new Vec2(0,h)).y);
    }
}
